package com.kkshop.model.util.security;

import org.acegisecurity.GrantedAuthority;
import org.acegisecurity.userdetails.User;

public class ExtendedUser extends User {

    private Object userInfo;

    public ExtendedUser(String username, String password, boolean isEnabled,
            GrantedAuthority[] authorities, Object userInfo) {
        super(username, password, isEnabled, true, true, true, authorities);
        this.setUserInfo(userInfo);
    }

    public ExtendedUser(String username, String password, boolean isEnabled,
            GrantedAuthority[] arrayAuths) {
        super(username, password, isEnabled, true, true, true, arrayAuths);
    }

    public Object getUserInfo() {
        return userInfo;
    }

    public void setUserInfo(Object userInfo) {
        this.userInfo = userInfo;
    }
}
